<template>
    <div style="height:100vh;background:#fff">
        <van-nav-bar
            title="开通会员"
            left-arrow
            @click-left="$router.go(-1)"
            />
        <div class="box">
            <img :src="this.info.avatar" alt="">
            <div>
                <p>{{this.info.nickname}}</p>
                <p>开通会员免费学习</p>
            </div>
        </div>
        <p class="title"><span><b>购买会员</b></span> 购买会员后可免费观看会员课程</p>
        <van-button class="btn" type="warning">购买会员</van-button>
    </div>
</template>

<script>
/* eslint-disable */
import { xinxis } from "../../Request/http.js";
    export default {
        data() {
            return {
                info:[]
            }
        },
        mounted(){
            xinxis().then(res=>{
                console.log(res);
                this.info=res
            })
        },
        methods:{

        }
    }
</script>

<style lang="scss" scoped>
.box{
    width: 100%;
    height: 2rem;
   
    box-sizing: border-box;
    padding: .2rem;
    display: flex;
    p{
        color: #aaa;
    }
    div{
        margin-left: .2rem;
    }
    img{
        width: 1.8rem;
        height:1.8rem;
        border-radius: 50%;
    }
}
.title{
    width: 100%;
    margin-top: 1rem;
    span{
        font-size: .4rem;
    }
}
.btn{
    width: 100%;
    margin-bottom: 0;
    position: fixed;
    bottom: 0;
}
</style>